package com.lglbc.day03;

import com.alibaba.nacos.api.config.annotation.NacosProperty;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/5/28
 * @Description
 */
@RestController
public class IndexController {
    @NacosValue(value = "${dataId1:}", autoRefreshed = true)
    private String dataId1;
    @NacosValue(value = "${dataId2:}", autoRefreshed = true)
    private String dataId2;

    @GetMapping("/getFlag")
    public String geFlag(){
        return dataId1+"::"+dataId2;
    }
}
